package com.wzq.permission.center.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wzq.permission.client.model.BaseModel;
import com.wzq.permission.client.model.Pager;

public interface BaseMapper {

	public <T> void add(T t);

	public <T> void update(T t);

	public <T> void updateBySelective(T t);

	public void delete(Object id);

	public int queryByCount(@Param("model")BaseModel model);

	public <T> List<T> queryList(@Param("model")BaseModel model,@Param("pager")Pager pager);

	public <T> T queryById(Object id);
}
